#ifndef MAINTAIN_LABEL_DELEGATE_H
#define MAINTAIN_LABEL_DELEGATE_H

#include <QItemDelegate>

class MaintainLabelDelegate : public QItemDelegate
{
    Q_OBJECT

public:
    explicit MaintainLabelDelegate(QObject *parent = 0);

    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index);

private:
};

#endif // MAINTAIN_LABEL_DELEGATE_H
